package com.xuecheng.manage_course.controller;

import com.xuecheng.api.course.SysControllerApi;
import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.framework.web.BaseController;
import com.xuecheng.manage_course.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
public class SysController extends BaseController implements SysControllerApi {
    @Autowired
    CourseService courseService;
    @Override
    @GetMapping("/dictionary/get/{type}")
    public SysDictionary findDictionary(@PathVariable("type")String type) {
        return courseService.findDictionary(type);
    }
}
